<?php
class SurgeryServiceAllowance extends ORDataObject{
	var $surgery_service_allowance 	= '';
	var $enum_allowance_class 		= '';
	var $allowance 					= '';
	
	var $_table			=	'surgery_service_allowance';
	var $_key			=	'surgery_service_allowance_id';
	var	$_internalName	=	'SurgeryServiceAllowance';
	
	public function SurgeryServiceAllowance(){
		parent::ORDataObject();
	}
	
	public function getAllowanceId($key, $allowance){
		$sql	=	"SELECT surgery_service_allowance_id allowance_id "
				.	"FROM $this->_table "
				.	"WHERE enum_allowance_class=$key AND allowance='$allowance'"
		;
		$res = $this->_execute($sql);
		return $res->fields;
	}
}
?>